package builder.general;

/**
 * @Author：LJ
 * @Description：建造者工厂
 * @Date: 2017/11/27
 * @Modified By:
 */
public class Director {
    private Builder builder = new ConcreteProduct();

    public Product getAProduct() {
        builder.setPart();
        return builder.buildProduct();//构造不同的产品
    }
}
